home *** CD-ROM | disk | FTP | other *** search
- property pMySprite, pMyMember, pMyMember2, pMyMember3
- global gProject, gSize
-
- on beginSprite me
- pMySprite = sprite(me.spriteNum)
- pMyMember = pMySprite.memberNum
- pMyMember2 = pMyMember - 1
- pMyMember3 = pMyMember + 1
- end
-
- on mouseEnter me
- set the memberNum of sprite pMySprite to pMyMember3
- case the currentSpriteNum of
- "30":
- put "Close current project and start a new one. (Ctrl+N)" into field "status"
- "32":
- put "Import an image from a file to the current project. (Ctrl+I)" into field "status"
- "39":
- put "Paste an image from the clipboard to the current project. (Ctrl+V)" into field "status"
- "308":
- controlStatus()
- end case
- end
-
- on mouseLeave me
- set the memberNum of sprite pMySprite to pMyMember
- put EMPTY into field "status"
- end
-
- on mouseDown me
- repeat while the mouseDown
- set the memberNum of sprite pMySprite to pMyMember2
- updateStage()
- end repeat
- end
-
- on mouseUp me
- set the memberNum of sprite pMySprite to pMyMember3
- case the currentSpriteNum of
- "30":
- newProject()
- "32":
- importColorImage()
- "39":
- pasteFromClipboard()
- "308":
- openControl()
- end case
- end
-
- on newProject
- if gSize = "8" then
- new1bitPattern()
- else
- if sprite(4).left <> 800 then
- newColorProject()
- put EMPTY into field "dimension status W"
- put EMPTY into field "dimension status H"
- else
- newColorProject()
- end if
- end if
- end
-
- on forceReset me
- set the memberNum of sprite pMySprite to pMyMember
- put EMPTY into field "status"
- end
-
- on controlStatus
- if gProject = "cursor" then
- put "Open the Windows Mouse control panel. (Ctrl+1)" into field "status"
- else
- put "Open the Windows Display control panel. (Ctrl+1)" into field "status"
- end if
- end
-
- on openControl
- if gProject = "cursor" then
- baRunProgram("control.exe main.cpl", "normal", 0)
- else
- baRunProgram("control.exe desk.cpl", "normal", 0)
- end if
- end
-